package gl.util

import org.lwjgl.opengl.GL11

val Boolean.glInt get() = if (this) GL11.GL_TRUE else GL11.GL_FALSE

val Int.unsignedByte get() = (this and 0xFF).toByte()

val Byte.fromUnsigned get() = this.toInt() and 0xFF